<?php

//set_include_path(dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'lib'. PATH_SEPARATOR .get_include_path());
require_once dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'CompleXml/Loader.php';
spl_autoload_register(array('CompleXml_Loader','autoload'));

require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/Framework/IncompleteTestError.php';
require_once 'PHPUnit/Framework/TestCase.php';
require_once 'PHPUnit/Framework/TestSuite.php';
require_once 'PHPUnit/Runner/Version.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'PHPUnit/Util/Filter.php';

require_once 'CompleXml/AllTests.php';

class AllTests
{
    public static function main()
    {
        PHPUnit_TextUI_TestRunner::run(self::suite(), $parameters);
    }

    public static function suite()
    {
        $suite = new PHPUnit_Framework_TestSuite('CompleXml Framework');

        $suite->addTest(CompleXml_AllTests::suite());

        return $suite;
    }
}
